package com.atguigu.eduorder.service;

import com.atguigu.eduorder.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author cyt
 * @create 2020-06-02 16:03
 */
public interface TOrderService extends IService<TOrder> {
    /**
     * 创建订单 id
     * @param courseId
     * @param memberIdByJwtToken
     * @return
     */
    String saveOrder(String courseId, String memberIdByJwtToken);

    /**
     * 根据用户的id 以及 课程的 id 查询订单信息
     * @param memberId
     * @param courseId
     * @return
     */
    int isBuy(String memberId, String courseId);
}
